import Vue from 'vue'
import App from './App.vue'

// 适配
import '@/mobile/flexible.js'

// 初始化默认样式
import '@/styles/reset.css'

//路由
import router from '@/router'


import { Tabbar, TabbarItem, NavBar, Col, Row, Image as VanImage, Cell, CellGroup, Icon, Search, List } from 'vant'

Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(NavBar);
Vue.use(Col);
Vue.use(Row);
Vue.use(VanImage);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Icon)
Vue.use(Search)
Vue.use(List)
import { recommendMusic } from '@/api'

async function fn() {
	const res = await recommendMusic()  //api方法获取promise对象中的ajax请求
}
fn()

Vue.config.productionTip = false


new Vue({
	render: (h) => h(App),
	router,
}).$mount('#app')
